﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class admin_admin : System.Web.UI.MasterPage
{
    public string userID;

    protected void Page_Load(object sender, EventArgs e)
    {
        if (Session["userid"] != null)
        {
            userID = Session["userid"].ToString();
            userName.Text = Session["username"].ToString();
        }
        else
        {
            string url = "~/admin/Login.aspx";
            Session["referrer"] = Request.Url.AbsolutePath;
            Response.Redirect(url);
        }
    }
}
